import _http from '@/utils/http'

export default {
    goodsInfoModifyStatus(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsInfo/modifyStatus',
            apiName: '批量修改商品状态',
        }, params, loading, headers)
    },
    goodsInfoDelete(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsInfo/delete',
            apiName: '批量删除商品',
        }, params, loading, headers)
    },
    goodsInfoSearch(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsInfo/search',
            apiName: '商品查询-分页',
        }, params, loading, headers)
    },
    goodsCategoryListSimple(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsCategory/list/simple',
            apiName: '商品分类下拉-前置条件:商品类型id',
        }, params, loading, headers)
    },
    goodsTypeListSimple(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsType/list/simple',
            apiName: '商品类型下拉',
        }, params, loading, headers)
    },
    goodsBrandSimple(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsBrand/list/simple',
            apiName: '品牌分类下拉-前置条件:商品分类id',
        }, params, loading, headers)
    },
    goodsInfoAdd(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsInfo/add',
            apiName: '新增商品',
        }, params, loading, headers)
    },
    goodsInfoDetail(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsInfo/detail',
            apiName: '商品详情',
        }, params, loading, headers)
    },
    goodsInfoModify(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsInfo/modify',
            apiName: '修改商品',
        }, params, loading, headers)
    },
    channelList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/channel/list',
            apiName: '上游平台',
        }, params, loading, headers)
    },
    channelProduct(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/channel/product',
            apiName: '上游产品递归展现',
        }, params, loading, headers)
    },
    productList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/channel/product/list',
            apiName: '上游产品列表查询',
        }, params, loading, headers)
    },
    goodsInfoRechargeType(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsInfo/list/rechargeType',
            apiName: '品牌下的充值类型列表',
        }, params, loading, headers)
    },
    channelList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/channel/list',
            apiName: '上游平台',
        }, params, loading, headers)
    },
    goodsInfoDown(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsInfo/search/down',
            apiName: '商品查询下载',
        }, params, loading, headers)
    },
    goodsTagList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goods/tag/list',
            apiName: '获取已有标签',
        }, params, loading, headers)
    },
}
